package com.itheima.job.jobTest3;

public class Test {
    public static void main(String[] args) {
        GouWuChe gouWuChe = new GouWuChe();
        Laptop laptop = new Laptop("笔记本","g10000",10000);
        Phone phone = new Phone("手机","g10001",5000);
        Fruit fruit = new Fruit("苹果","g20000",50);
        gouWuChe.addGoods(laptop);
        gouWuChe.addGoods(phone);
        gouWuChe.addGoods(fruit);
        gouWuChe.show();
        gouWuChe.total();
    }
}
